package com.hdoit.apollo.logical.billing.model;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hdoit.apollo.logical.shop.model.Customer;
import com.hdoit.apollo.logical.stock.model.OutStock;
import com.tennetcn.data.message.ModelBase;
/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 10:32:35
 * @comment
 */
@Entity
@Table(name="billing_billing")
public class Billing extends ModelBase{
    //Id
    @Id
    @Column(name="billingId")
    private String billingId;
    
    //退货单关联原单
    @Column(name="billingIdReturn")
    private String billingIdReturn;
    
    //退货单关联原单
    @Column(name="billingIdYuan")
    private String billingIdYuan;

    //订单号
    @Column(name="billingNo")
    private String billingNo;

    //客户Id
    @Column(name="customerId")
    private String customerId;

    //货物种类数
    @Column(name="typeNum")
    private Integer typeNum;

    //总数量
    @Column(name="totalNum")
    private Double totalNum;

    //订单金额
    @Column(name="billingMoney")
    private Double billingMoney;

    //订单状态
    @Column(name="billingState")
    private String billingState;

    //是否发货
    @Column(name="isDelivery")
    private Integer isDelivery;

    //是否收款
    @Column(name="isGathering")
    private Integer isGathering;

    //已付金额
    @Column(name="paidAmount")
    private Double paidAmount;

    //未付金额
    @Column(name="unpaidAmount")
    private Double unpaidAmount;

    //尚欠款
    @Column(name="outstandingAmount")
    private Double outstandingAmount;

    //物流地址
    @Column(name="address")
    private String address;

    //是否现场收款
    @Column(name="isLiveReceivables")
    private String isLiveReceivables;

    //是否现场发货
    @Column(name="isLiveCargo")
    private String isLiveCargo;

    //整单优惠（折扣）
    @Column(name="discount")
    private Double discount;
    
    //业务员名称
    @Column(name="businessName")
    private String businessName;
    
    //业务员id
    @Column(name="businessId")
    private String businessId;
    
    //交货日期
    @Column(name="deliveryDate")
    private Date deliveryDate;
    
    //付款状态
    @Column(name="payState")
    private String payState;
    
    //订单是否确人通过
    @Column(name="confirm")
    private String confirm;
    
    //门店id
    @Column(name="shopId")
    private String shopId;

    //创建时间
    @Column(name="createDate")
    private Date createDate;

    //创建人id
    @Column(name="createUserId")
    private String createUserId;

    //创建人名称
    @Column(name="createUserName")
    private String createUserName;

    //修改时间
    @Column(name="modifyDate")
    private Date modifyDate;

    //修改人id
    @Column(name="modifyUserId")
    private String modifyUserId;

    //修改人名称
    @Column(name="modifyUserName")
    private String modifyUserName;
    

    //删除标记
    @Column(name="deleteMark")
    private Integer deleteMark;
    
    //备注
    @Column(name="comment")
    private String comment;

    @Transient
    private OutStock outStock;
    
    @Transient
    private Customer customer;
    
    @Transient
    private String billingNoYuan;
    
	public String getBillingIdYuan() {
		return billingIdYuan;
	}
	public void setBillingIdYuan(String billingIdYuan) {
		this.billingIdYuan = billingIdYuan;
	}

	public String getConfirm() {
		return confirm;
	}
	public void setConfirm(String confirm) {
		this.confirm = confirm;
	}
	public String getPayState() {
		return payState;
	}
	public void setPayState(String payState) {
		this.payState = payState;
	}
	public String getBillingNoYuan() {
		return billingNoYuan;
	}
	public void setBillingNoYuan(String billingNoYuan) {
		this.billingNoYuan = billingNoYuan;
	}
	public String getBusinessName() {
		return businessName;
	}
	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}
	public String getBusinessId() {
		return businessId;
	}
	public void setBusinessId(String businessId) {
		this.businessId = businessId;
	}
	public Date getDeliveryDate() {
		return deliveryDate;
	}
	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}
	public String getBillingIdReturn() {
		return billingIdReturn;
	}
	public void setBillingIdReturn(String billingIdReturn) {
		this.billingIdReturn = billingIdReturn;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}

    public OutStock getOutStock() {
		return outStock;
	}
	public void setOutStock(OutStock outStock) {
		this.outStock = outStock;
	}
	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public String getBillingId(){
        return this.billingId;
    }
    public void setBillingId(String billingId){
         this.billingId=billingId;
    }

    public String getBillingNo(){
        return this.billingNo;
    }
    public void setBillingNo(String billingNo){
         this.billingNo=billingNo;
    }

    public String getCustomerId(){
        return this.customerId;
    }
    public void setCustomerId(String customerId){
         this.customerId=customerId;
    }

    public Integer getTypeNum(){
        return this.typeNum;
    }
    public void setTypeNum(Integer typeNum){
         this.typeNum=typeNum;
    }

    public Double getTotalNum(){
        return this.totalNum;
    }
    public void setTotalNum(Double totalNum){
         this.totalNum=totalNum;
    }

    public Double getBillingMoney(){
        return this.billingMoney;
    }
    public void setBillingMoney(Double billingMoney){
         this.billingMoney=billingMoney;
    }

    public String getBillingState(){
        return this.billingState;
    }
    public void setBillingState(String billingState){
         this.billingState=billingState;
    }

    public Integer getIsDelivery(){
        return this.isDelivery;
    }
    public void setIsDelivery(Integer isDelivery){
         this.isDelivery=isDelivery;
    }

    public Integer getIsGathering(){
        return this.isGathering;
    }
    public void setIsGathering(Integer isGathering){
         this.isGathering=isGathering;
    }

    public Double getPaidAmount(){
        return this.paidAmount;
    }
    public void setPaidAmount(Double paidAmount){
         this.paidAmount=paidAmount;
    }

    public Double getUnpaidAmount(){
        return this.unpaidAmount;
    }
    public void setUnpaidAmount(Double unpaidAmount){
         this.unpaidAmount=unpaidAmount;
    }

    public Double getOutstandingAmount(){
        return this.outstandingAmount;
    }
    public void setOutstandingAmount(Double outstandingAmount){
         this.outstandingAmount=outstandingAmount;
    }

    public String getAddress(){
        return this.address;
    }
    public void setAddress(String address){
         this.address=address;
    }

    public String getIsLiveReceivables() {
		return isLiveReceivables;
	}
	public void setIsLiveReceivables(String isLiveReceivables) {
		this.isLiveReceivables = isLiveReceivables;
	}
	public String getIsLiveCargo() {
		return isLiveCargo;
	}
	public void setIsLiveCargo(String isLiveCargo) {
		this.isLiveCargo = isLiveCargo;
	}
	public Double getDiscount(){
        return this.discount;
    }
    public void setDiscount(Double discount){
         this.discount=discount;
    }

    public String getShopId(){
        return this.shopId;
    }
    public void setShopId(String shopId){
         this.shopId=shopId;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public Date getModifyDate(){
        return this.modifyDate;
    }
    public void setModifyDate(Date modifyDate){
         this.modifyDate=modifyDate;
    }

    public String getModifyUserId(){
        return this.modifyUserId;
    }
    public void setModifyUserId(String modifyUserId){
         this.modifyUserId=modifyUserId;
    }

    public String getModifyUserName(){
        return this.modifyUserName;
    }
    public void setModifyUserName(String modifyUserName){
         this.modifyUserName=modifyUserName;
    }

    public Integer getDeleteMark(){
        return this.deleteMark;
    }
    public void setDeleteMark(Integer deleteMark){
         this.deleteMark=deleteMark;
    }

}